3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Uns32 vertexIndex
Uns32 nFaces
Uns32 faces[nFaces]
Uns32 nCorners
MeshCorner corners[nCorners]
The mesh corners object is used to attach more than one attribute set to a vertex of a mesh and to override other attributes inherited by a vertex or assigned to it elsewhere. You can use mesh corners in various ways: for example, to apply different normals and shadings in order to create the appearance of a sharp edge or peak. This object occurs only as a child object to a mesh and always has attribute sets as child objects of its own.
Attribute sets (always). The number of child objects is equal to the value of the numCorners field. Child objects are correlated with elements of the array corners[] in the order of their occurrence in the specification of the mesh corners object and its child objects; that is, the i th child object is correlated with the i th element of the array corners[] .
Container (
Mesh (...) # parent mesh
Container(
MeshCorners (
2 # numCorners
# Corner 0
5 # vertexIndex
2 # faces
25 26 # face indices
# Corner 1
5 # vertexIndex
2 # faces
23 24 # face indices
)
Container (
AttributeSet ( )
Normal ( -0.2 0.8 0.3 )
)
Container (
AttributeSet ( )
Normal ( -0.7 -0.1 0.4 )
)
)
)
Previous | QD3D Book | Overview | Chapter Contents | Next |